body {
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: all 0.3s ease;
  //禁止文字选中
  user-select: none;
}

img {
  //禁止拖动图片
  -webkit-user-drag: none;
}



.site-layout .site-layout-background {
  background: #fff;
}

#root {
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

// 这些颜色只是一个初始化作用，修改无效，需要修改color.ts文件中的样式才生效
:root {
  // 基础颜色
  --color-primary: #1890ff;
  --color-secondary: #722ed1;
  --color-success: #52c41a;
  --color-warning: #faad14;
  --color-error: #f5222d;
  --color-info: #13c2c2;

  // 文本颜色
  --color-text-primary: rgba(0, 0, 0, 0.85);
  --color-text-secondary: rgba(0, 0, 0, 0.65);
  --color-text-disabled: rgba(0, 0, 0, 0.25);

  // 背景颜色
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f5f5f5;
  --color-bg-paper: #fafafa;

  // 边框和装饰
  --color-border: #d9d9d9;
  --color-divider: rgba(0, 0, 0, 0.06);
  --color-hover: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  // 基础颜色
  --color-primary: #177ddc;
  --color-secondary: #391085;
  --color-success: #49aa19;
  --color-warning: #d89614;
  --color-error: #a61d24;
  --color-info: #08979c;

  // 文本颜色
  --color-text-primary: rgba(255, 255, 255, 0.85);
  --color-text-secondary: rgba(255, 255, 255, 0.65);
  --color-text-disabled: rgba(255, 255, 255, 0.3);

  // 背景颜色
  --color-bg-primary: #1f1f1f;
  --color-bg-secondary: #141414;
  --color-bg-paper: #262626;

  // 边框和装饰
  --color-border: #434343;
  --color-divider: rgba(255, 255, 255, 0.12);
  --color-hover: rgba(255, 255, 255, 0.08);
}

body {
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: all 0.3s ease;
}

//Logo样式
.demo-logo-vertical {
  height: 50px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  gap: 8px;
}


/* transition.css */
.theme-transition {
  transition:
          background-color 0.5s ease,
          color 0.3s ease;
}

/* 确保Antd组件也获得过渡 */
.theme-transition * {
  transition:
          background-color 0.5s ease,
          border-color 0.5s ease,
          color 0.3s ease;
}
